package com.tsingteng.cosfun.bean;

import com.chad.library.adapter.base.entity.MultiItemEntity;

/**
 * 聊天测试实体类
 * */
public class ChatDemoBean implements MultiItemEntity {
    private String image;
    private long time;
    private String content;
    private int tag;

    public ChatDemoBean(String image, long time, String content, int tag) {
        this.image = image;
        this.time = time;
        this.content = content;
        this.tag = tag;
    }

    public ChatDemoBean() {
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getTag() {
        return tag;
    }

    public void setTag(int tag) {
        this.tag = tag;
    }

    @Override
    public String toString() {
        return "ChatDemoBean{" +
                "image='" + image + '\'' +
                ", time=" + time +
                ", content='" + content + '\'' +
                ", tag=" + tag +
                '}';
    }

    @Override
    public int getItemType() {
        if(tag == 0){
            return 0;
        }else{
            return 1;
        }
    }
}
